-- GENERATED SPELL FOR [Vrykul Skeleton] --


function spell0_23970(pUnit, Event) --@Bone Armor,n/a--
pUnit:FullCastSpellOnTarget(59386,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23970', 662, 1)
end

function spell1_23970(pUnit, Event) --@Decrepify,n/a--
pUnit:FullCastSpellOnTarget(42702,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23970', 10302, 1)
end

function spell2_23970(pUnit, Event) --@Decrepify,n/a--
pUnit:FullCastSpellOnTarget(59397,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23970', 10312, 1)
end

function Sorts_23970(pUnit, Event)
local choix_sorts_23970 = math.random(0, 2)
if choix_sorts_23970 == 0 then
pUnit:RegisterEvent('spell0_23970', 1, 1)
end
if choix_sorts_23970 == 1 then
pUnit:RegisterEvent('spell1_23970', 1, 1)
end
if choix_sorts_23970 == 2 then
pUnit:RegisterEvent('spell2_23970', 1, 1)
end
end

function mob23970_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23970', math.random(1500, 3000), 1)
end

function mob23970_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23970_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23970_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23970, 1, 'mob23970_Action')
RegisterUnitEvent(23970, 2, 'mob23970_Leave')
RegisterUnitEvent(23970, 3, 'mob23970_Kill')
RegisterUnitEvent(23970, 4, 'mob23970_Die')
